package com.web.service;

import com.web.dao.ReportInfoMapper;
import com.web.dao.ReportUserInfoMapper;
import com.web.entity.ReportInfo;
import com.web.entity.ReportUserInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class ReportService {
    @Resource
    private ReportInfoMapper reportInfoMapper;
    @Resource
    private ReportUserInfoMapper reportUserInfoMapper;
    /**
     * 获取全部类型
     * @return
     */
    public List<ReportInfo> getAllReportInfo(){
       return reportInfoMapper.getAllReportInfo();
    }


    /**
     * 举报
     * @param info
     */
    public void addReportUserInfo(ReportUserInfo info){
        reportUserInfoMapper.insertSelective(info);
    }
}
